package com.cn.stusy0015.demo0018;

import java.util.Scanner;

/**
 * @author lw
 * @ClassName LocateStr.java
 * @Description
 * @createTime 2023年05月20日 17:30:00
 */
public class LocateStr {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ToFindThe s = new ToFindThe();
        String str = "";
        String temp = "";
        System.out.println("请输入字符串：");
        str = sc.next();
        System.out.println("请输入需要查找的字符串:");
        temp = sc.next();
        System.out.println("\""+str + "\""+"在字符串中出现的位置有");
        s.counters(str, temp);
    }
}
